package BufferedWriterTest;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-10-01
 * Time: 20:29
 */
public class BufferedWriterDemo {

    public static void main(String[] args) throws IOException {
        try(BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("e://hello.txt"))){
            bufferedWriter.write("你好");
            bufferedWriter.newLine();
            bufferedWriter.write("bite");
        }
    }


}
